package com.springboot_blog.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 用户查询数据传输对象
 */
@Data
@Schema(description = "用户查询数据传输对象")
public class UserQueryDTO {

    @Schema(description = "用户名", example = "admin")
    private String username;

    @Schema(description = "昵称", example = "管理员")
    private String nickname;

    @Schema(description = "邮箱", example = "admin@example.com")
    private String email;

    @Schema(description = "角色ID", example = "1")
    private Long roleId;

    @Schema(description = "状态：1-正常，0-禁用", example = "1")
    private Integer status;

    @Schema(description = "页码", example = "1")
    private Integer pageNum = 1;

    @Schema(description = "每页大小", example = "10")
    private Integer pageSize = 10;

    @Schema(description = "排序字段", example = "created_at")
    private String orderBy = "created_at";

    @Schema(description = "排序方式：asc-升序，desc-降序", example = "desc")
    private String orderDirection = "desc";
}